BeginProperty font {FB8F0823-0164-101B-84ED-08002B2EC713}
name = "MS Sans Serif"
charset = 1
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
bevelouter = 0
bevelinner = 1
Begin Threed.SSCommand btnClose
Height = 690
Left = 1590
TabIndex = 5
Top = 60
Width = 1515
_version = 65536
_extentx = 2672
_extenty = 1217
_stockprops = 78
caption = "Close"
BeginProperty font {FB8F0823-0164-101B-84ED-08002B2EC713}
name = "MS Sans Serif"
charset = 1
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
End
Begin Threed.SSCommand btnOK
Height = 690
Left = 45
TabIndex = 4
Top = 60
Width = 1560
_version = 65536
_extentx = 2752
_extenty = 1217
_stockprops = 78
caption = "OK"
BeginProperty font {FB8F0823-0164-101B-84ED-08002B2EC713}
name = "MS Sans Serif"
charset = 1
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
End
End
Begin Threed.SSPanel pnlSerial
Height = 480
Left = 1305
TabIndex = 9
Top = 1140
Width = 2415
_version = 65536
_extentx = 4260
_extenty = 847
_stockprops = 15
backcolor = -2147483633
BeginProperty font {FB8F0823-0164-101B-84ED-08002B2EC713}
name = "MS Sans Serif"
charset = 1
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
bevelouter = 0
bevelinner = 1
Begin VB.TextBox RegNumText
Alignment = 2 'Center
Appearance = 0 'Flat
BorderStyle = 0 'None
Height = 255
Left = 90
MultiLine = -1 'True
TabIndex = 3
Text = "REGNUM.frx":0000
Top = 150
Width = 2250
End
End
Begin Threed.SSPanel pnlLast
Height = 480
Left = 2730
TabIndex = 8
Top = 270
Width = 1920
_version = 65536
_extentx = 3387
_extenty = 847
_stockprops = 15
backcolor = -2147483633
BeginProperty font {FB8F0823-0164-101B-84ED-08002B2EC713}
name = "MS Sans Serif"
charset = 1
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
bevelouter = 0
bevelinner = 1
Begin VB.TextBox LastName
Alignment = 2 'Center
Appearance = 0 'Flat
BorderStyle = 0 'None
Height = 240
Left = 90
MultiLine = -1 'True
TabIndex = 2
Text = "REGNUM.frx":0012
Top = 135
Width = 1740
End
End
Begin Threed.SSPanel pnlFirst
Height = 480
Left = 390
TabIndex = 0
Top = 270
Width = 1920
_version = 65536
_extentx = 3387
_extenty = 847
_stockprops = 15
backcolor = -2147483633
BeginProperty font {FB8F0823-0164-101B-84ED-08002B2EC713}
name = "MS Sans Serif"
charset = 1
weight = 400
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
bevelouter = 0
bevelinner = 1
Begin VB.TextBox FirstName
Alignment = 2 'Center
Appearance = 0 'Flat
BorderStyle = 0 'None
Height = 225
Left = 60
MultiLine = -1 'True
TabIndex = 1
Text = "REGNUM.frx":001C
Top = 120
Width = 1800
End
End
End
Attribute VB_Name = "RegNum"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Private Sub btnClose_Click()
' User has chosen "Close" button.
Unload RegNum
End Sub
Private Sub btnOK_Click()
' If the correct serial number is entered the first message
' box will be displayed. Otherwise user will be told he
' entered incorrect information.
If RegNumText.Text = SerialNum$ Then
frmNag.RegPanel.Visible = 0
frmNag.RegButton.Visible = 0
MsgBox ("Thank you " + FirstName.Text + ", the number entered: " + RegNumText.Text + " was valid, please store this number in a safe place in case it is needed in the future. Again, thank you for registering <Your Program Name>."), 48, "Thank You!"
RegStat = RegNumText.Text
First = FirstName.Text
Last = LastName.Text
Else
Beep
RegNum.Hide
MsgBox ("You have entered an incorrect number."), 48, "Sorry..."
End If
Unload RegNum
End Sub
Private Sub FirstName_GotFocus()
'Calls "SelectWholeText" function.
SelectWholeText FirstName
End Sub
Private Sub FirstName_KeyPress(KeyAscii As Integer)
C$ = Chr$(KeyAscii)
C$ = UCase$(C$)
KeyAscii = Asc(C$)
End Sub
Private Sub Form_Load()
'Center form on screen.
Left = (Screen.Width - Width) \ 2
Top = (Screen.Height - Height) \ 2
End Sub
Private Sub LastName_GotFocus()
'Calls "SelectWholeText" function.
SelectWholeText LastName
End Sub
Private Sub LastName_KeyPress(KeyAscii As Integer)
C$ = Chr$(KeyAscii)
C$ = UCase$(C$)
KeyAscii = Asc(C$)
End Sub
Private Sub RegNumText_GotFocus()
'Calls "SelectWholeText" function.
SelectWholeText RegNumText
End Sub
Private Sub RegNumText_KeyPress(KeyAscii As Integer)